<?php
$isadmin=1;
include "../../comm/tuaninc.php";
include('../check.php');
admin_log('删除团购商品');
if($_GET['act']=='timedel'){
    $sql="delete from ".$duoduo->BIAOTOU."tuan_goods where endTime<'".time()."'";
    $duoduo->query($sql);
	echo $duoduo->alert('删除成功');
	exit;
}
$id=$_GET['id'];
$ids=$_GET['ids'];
$table=$_GET['table'];
if($id>0 && count($ids)==0){
    $ids[]=$id;
}
foreach($ids as $id){
    if($id>0){
        $sql="delete from ".$duoduo->BIAOTOU."tuan_goods where id='".$id."'";
        $duoduo->query($sql);
    }
}

echo $duoduo->alert('删除成功');
?>
